<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'showUserInfo.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
			#top {
	width: 100%;
	text-align: center;
}

#top-title {
	width: 76%;
	font-size: 30px;
	display: inline-block;
	text-align: center;
	margin: 5px auto;
	background-color: #cee7ff;
}

#content table {
	margin: 0px auto;
	border: 2px solid #0080ff;
	text-align: center;
}

#content table th {
	background-color: #cee7ff;
}

#content table td, #content table th {
	border: 0.5px solid #42a0ff;
	height: 50px;
	width: 300px;
	text-align: center;
}
</style>
</head>

<body>
	<div id="all">
		<span id="address">>>当前位置:部门管理</span> <br />
		<br />
		<br />
		<div id="top">
			<span id="top-title">用户管理</span>
		</div>
		<center>
			<div id="content" style="width:900px;height:400px;">
				<input type="button"
					onclick="location.href='admin_cg/zhk/addUserinfo.jsp'" value="添加用户"
					style="float:right" /> <br />
				<br />
				<table border="1" cellpadding="0" cellspacing="0" width="870px" style="text-align: center">
					<tr>
						<th>用户ID</th>
						<th>姓名</th>
						<th>密码</th>
						<th>角色</th>
						<th>用户详情</th>
						<th>修改</th>
						<th>删除</th>
					</tr>
					<s:iterator value="%{#session.p.list}">
						<tr>
							<td><s:property value="%{userid}" /></td>
							<td><s:property value="%{username}" /></td>
							<td><s:property value="%{password}" /></td>
							<td><s:property value="%{roleinfo.rolename}" /></td>
							<td><sx:a href="userinfoactiontwo?u.userid=%{userid}">详情</sx:a></td>
							<td><sx:a href="userinfoactionone?u.userid=%{userid}">
									<img src="admin_cg/zhk/image/edit.gif">
								</sx:a></td>
							<td><sx:a href="userinfoactiondelete?u.userid=%{userid}">
									<img src="admin_cg/zhk/image/delete.gif">
								</sx:a></td>

						</tr>
					</s:iterator>
				</table>
				<br>
				<br>
				<sx:a href="splitpage2?type=1&page=1">首页</sx:a>
				<sx:a href="splitpage2?type=1&page=%{#session.p.currentPage-1}">上一页</sx:a>
				<sx:a href="splitpage2?type=1&page=%{#session.p.currentPage+1}">下一页</sx:a>
				<sx:a href="splitpage2?type=1&page=%{#session.p.totalPage}">末页</sx:a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【
				<s:property value="%{#session.p.currentPage}" />
				/
				<s:property value="%{#session.p.totalPage}" />
				】

			</div>
		</center>
	</div>

</body>
</html>
